package ${attach.beanPackage};


import io.swagger.v3.oas.annotations.media.Schema;
import javax.validation.constraints.Size;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
* POJO
* ${tableComment} [${tableName}]
* @author ChenSS on 2018/6/20.
*/
@Schema(description = "${tableComment} [${tableName}] 实体类")
public class ${pascalName} implements Serializable {

<#list columns as column>
    /**
    * ${column.columnComment}
    */
    ${column}
    <#if column.nullable == false>
        @NotNull
    </#if>
    <#if column.string == true>
        @Size(max = ${column.length})
    </#if>
    <#if column.javaType == 'BigDecimal'><#if column.javaType == 'BigDecimal'>
        @Digits(integer = ${column.numericPrecision}, fraction = ${column.numericScale})
    <#else >
        @Digits(integer = ${column.numericPrecision})
    </#if></#if>    @Schema(description = "${column.columnComment}")
    private ${column.javaType} ${column.camelName};
</#list>
<#list columns as column>

    public ${column.javaType} get${column.pascalName}() {
    return ${column.camelName};
    }

    public void set${column.pascalName}(${column.javaType} ${column.camelName}) {
    this.${column.camelName} = ${column.camelName};
    }
</#list>
}
